package com.collect.cameroon.zhiAdater.zhiDs;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.collect.cameroon.R;
import com.collect.cameroon.zhiBean.zhiReceive.ZHIRDsEntity;

public class ZHIDsListAdjuster_old extends BaseQuickAdapter<ZHIRDsEntity, BaseViewHolder> {

    public ZHIDsListAdjuster_old() {
        super(R.layout.item_ds_list, null);
    }

    private OnDsItemClickListener mOnDsItemClickListener;

    @Override
    protected void convert(BaseViewHolder helper, final ZHIRDsEntity zhirDsEntity) {
//        helper.setText(R.id.tvProduct, zhirDsEntity.getAppName());
//        helper.setText(R.id.tvProductLink, zhirDsEntity.getAppLink());
//        helper.setText(R.id.tvDays, zhirDsEntity.getDaysFormat());
//        helper.setText(R.id.tvLoanAmount, zhirDsEntity.getPrincipalFormat());
//        helper.setText(R.id.tvRealAmount, zhirDsEntity.getRealAmountFormat());
//        helper.setText(R.id.tvInterst, zhirDsEntity.getInterestFormat());
//        helper.setText(R.id.tvProcessFee, zhirDsEntity.getServiceFeeFormat());
//        helper.setText(R.id.tvRepayAmount, zhirDsEntity.getRepayAmountFormat());
//        helper.setText(R.id.tvDueDate, zhirDsEntity.getRepayTime());
//        helper.setText(R.id.tvUserName, zhirDsEntity.getFullName());
//        helper.setText(R.id.tvUserMobile, zhirDsEntity.getMobile());
//
//        TextView tvProductLink = helper.getView(R.id.tvProductLink);
//        tvProductLink.setOnClickListener(view -> {
//            if (mOnDsItemClickListener != null) {
//                mOnDsItemClickListener.OnItemClick(zhirDsEntity, ZHIDsActionType.COPY_PRODUCT_LINK);
//            }
//        });
//
//        ImageView ivProductLinkCopy = helper.getView(R.id.ivProductLinkCopy);
//        ivProductLinkCopy.setOnClickListener(view -> {
//            if (mOnDsItemClickListener != null) {
//                mOnDsItemClickListener.OnItemClick(zhirDsEntity, ZHIDsActionType.COPY_PRODUCT_LINK);
//            }
//        });
//
//        ImageView ivCallPhone = helper.getView(R.id.ivCallPhone);
//        ivCallPhone.setOnClickListener(view -> {
//            if (mOnDsItemClickListener != null) {
//                mOnDsItemClickListener.OnItemClick(zhirDsEntity, ZHIDsActionType.CALL_PHONE);
//            }
//        });
//
//        ImageView ivCallWhatsapp = helper.getView(R.id.ivCallWhatsapp);
//        ivCallWhatsapp.setOnClickListener(view -> {
//            if (mOnDsItemClickListener != null) {
//                mOnDsItemClickListener.OnItemClick(zhirDsEntity, ZHIDsActionType.CALL_WHATSAPP);
//            }
//        });
//
//        ZHINextStepView btnNotCallSuccess = helper.getView(R.id.btnNotCallSuccess);
//        btnNotCallSuccess.setOnMenuItemDidChangedListener(item -> {
//            if (mOnDsItemClickListener != null) {
//                mOnDsItemClickListener.OnItemClick(zhirDsEntity, ZHIDsActionType.RESULT_NO_ANSWER);
//            }
//        });
//
//        ZHINextStepView btnNeedAmount = helper.getView(R.id.btnNeedAmount);
//        btnNeedAmount.setOnMenuItemDidChangedListener(item -> {
//            if (mOnDsItemClickListener != null) {
//                mOnDsItemClickListener.OnItemClick(zhirDsEntity, ZHIDsActionType.RESULT_NEED_MONEY);
//            }
//        });
//
//        ZHINextStepView btnNotNeedAmount = helper.getView(R.id.btnNotNeedAmount);
//        btnNotNeedAmount.setOnMenuItemDidChangedListener(item -> {
//            if (mOnDsItemClickListener != null) {
//                mOnDsItemClickListener.OnItemClick(zhirDsEntity, ZHIDsActionType.RESULT_NOT_NEED_MONEY);
//            }
//        });
    }

    public void setOnDsItemClickListener(OnDsItemClickListener onOrderItemClickListener) {
        this.mOnDsItemClickListener = onOrderItemClickListener;
    }

    public interface OnDsItemClickListener {
        void OnItemClick(ZHIRDsEntity zhirDsEntity, String actionType);
    }
}